package fangfa;

public class test4 {
    public static void main(String[] args) {
        //int类型
        comper(2,6);
        //byte类型第一种
        comper((byte) 3,(byte) 4);
        //byte第二种（常用）
        byte b1 = 13;
        byte b2 = 14;
        comper( b1,b2);
    }
    public static void comper(int a1 ,int a2){
        System.out.println("int");
        System.out.println( a1 ==  a2);
    }
    public static void comper(byte b1 ,byte b2){
        System.out.println("byte");
        System.out.println( b1 ==  b2);
    }
    public static void comper(long c1 ,long c2){
        System.out.println("long");
        System.out.println( c1  ==  c2);
    }
    public static void comper(short d1 ,short d2){
        System.out.println("short");
        System.out.println( d1 ==  d2);
    }
}
